package com.juc.learn.problem.beans;

/**
 * ClassName:Phone
 * Package:com.juc.learn.problem.beans
 * Description:
 *
 * @Author:@郭先森
 * @Create:2025/7/27 - 9:24
 * @Version:v1.0
 */
public class Phone {
    public synchronized void sendSMS() throws InterruptedException {
        Thread.sleep(4000);
        System.out.println("----sendSMS");
    }
    public synchronized void sendEmail(){
        System.out.println("----sendEmail");
    }
    public void getHello(){
        System.out.println("----getHello");
    }

    public static synchronized void sendSMS1() throws InterruptedException {
        Thread.sleep(4000);
        System.out.println("----sendSMS");
    }
    public static synchronized void sendEmail1(){
        System.out.println("----sendEmail");
    }
}
